package com.dc.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 巡检表
 *
 * @author feishaobin
 * @email
 * @date 2021-12-27 14:23:07
 */
@Data
@ApiModel
@TableName("dc_inspection_work_order")
public class InspectionWorkOrder implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "")
    private Long id;
    /**
     * 路线id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "路线id")
    private Long routeId;
    /**
     * 路线名称
     */
    @ApiModelProperty(value = "路线名称")
    private String routeName;
    /**
     * 巡检人员id
     */
    @ApiModelProperty(value = "巡检人员id")
    private Long userId;
    /**
     * 巡检人员姓名
     */
    @ApiModelProperty(value = "巡检人员姓名")
    private String userName;


    /**
     * 0:巡检中 1:完成
     */
    @ApiModelProperty(value = "0:巡检中 1:完成")
    private Integer status;
    /**
     * 巡检开始时间
     */
    @ApiModelProperty(value = "巡检开始时间")
    private Date startTime;
    /**
     * 巡检结束时间
     */
    @ApiModelProperty(value = "巡检结束时间")
    private Date endTime;
    /**
     * 应巡点位数量
     */
    @ApiModelProperty(value = "应巡点位数量")
    private Integer needNum;
    /**
     * 已巡点位数量
     */
    @ApiModelProperty(value = "已巡点位数量")
    private Integer alreadyNum;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

}
